#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :03企名片.py
# @Time      :2024/4/14 14:48
# @Author    :Sherlock
import execjs
import requests


url = "https://vipapi.qimingpian.cn/Activity/channelInformationByChannelName"

payload = 'channel_name=24%E6%96%B0%E5%A3%B0&page=1&num=20&unionid=%2BYUk371gUTn9XjwhuY5HLy5cIPwZ%2FPrGMJaRzWH78ACdWIaL0wyeeHS4Aqh5tfk1eJWqqIs6kiQsM8IbOYgM5A%3D%3D'
headers = {
    'content-type': 'application/x-www-form-urlencoded',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'
}

response = requests.request("POST", url, headers=headers, data=payload)
res = execjs.compile(open('JS_function.js', 'r', encoding='utf-8').read()).call('jiemi', response.json()["encrypt_data"])
print(res)
